/*
 * @Author: myw
 * @Email: 516378746@qq.com
 * @Date: 2020-02-24 08:49:15
 * @Descripttion: 
 */
import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';

import { MaterialManageLayoutComponent } from "./material-manage-layout/material-manage-layout.component"

const routes: Routes = [
    {
        path: "",
        component: MaterialManageLayoutComponent,
        children: [
            {
                path: "basedata",
                data : {
                    uid : 31,
                    title : "基础数据",
                    isLastLevel : false,
                },
                loadChildren: () => {
                    return import("./basedata-manage/basedata-manage.module").then((mod) => {
                        return mod.BasedataManageModule
                    })
                }
            },
            {
                path: "warehouse",
                data : {
                    uid : 32,
                    title : "库房管理",
                    isLastLevel : false,
                },
                loadChildren: () => {
                    return import("./warehouse-manage/warehouse-manage.module").then((mod) => {
                        return mod.WarehouseManageModule
                    })
                }
            },
        ]
    }
];

@NgModule({
    imports: [RouterModule.forChild(routes)],
    exports: [RouterModule]
})
export class MateriralManageRoutingModule { }
